package cn.zjh.base.mapper;

import cn.zjh.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    //查询所有
    List<T> loadAll();

    //根据id查询
    T loadById(Long id);

    //删除
    void remove(Long id);

    //新增
    void save(T t);

    //修改
    void update(T t);

    //高级查询
    List<T> queryData(BaseQuery baseQuery);

    //分页总条数
    Integer queryCount(BaseQuery baseQuery);

    //批量删除
    void batchDel(Long[] ids);
}
